package com.tujia.controller;

import com.tujia.apollo.TestXmlBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/xml")
public class ApolloXMLController {
    @Autowired
    TestXmlBean testXmlBean1;
    @Autowired
    TestXmlBean testXmlBean2;

    @RequestMapping("/apollo")
    public String getApollo() throws Exception {
        System.out.println("默认的namespace: " + testXmlBean1.getCityId());
        System.out.println("1.application.public: " + testXmlBean2.getCityId());
        return "test";
    }
}
